package com.skyline.common.util;

/***
 * 系统常量类，用于存放Session、request的Key等信息
 * */
public class Constant {

	public static final String SESSION_USER = "SESSION_USER";
	public static final String SESSION_CERT_CODE = "SESSION_CERT_CODE";
	public static final String SESSION_AUTHORITY_MATRIX = "SESSION_AUTHORITY_MATRIX";
	public static final String SESSION_SUBMIT_TOKEN = "SESSION_SUBMIT_TOKEN";
	public static final String SESSION_UPLOAD_OK_FILES = "SESSION_UPLOAD_OK_FILES";

	public static final String SESSION_IDOLS = "SESSION_IDOLS";
	public static final String SESSION_FANS = "SESSION_FANS";
	public static final String SESSION_IDOL_IDS = "SESSION_IDOL_IDS";
	public static final String SESSION_LAST_QUERY_TIME = "SESSION_LAST_QUERY_TIME";
	public static final String SESSION_ATTENTION_FLAG="SESSION_ATTENTION_FLAG";
	
	public static final String SESSION_FIND_PSWD_STAT="SESSION_FIND_PSWD_STAT";
	public static final String SESSION_FIND_PSWD_QUESTION_ANSWERED="SESSION_FIND_PSWD_QUESTION_ANSWERED";
	public static final String SESSION_FIND_PSWD_USER="SESSION_FIND_PSWD_USER";
	public static final String SESSION_FIND_PSWD_CHECKED_TOKEN_ID="SESSION_FIND_PSWD_CHECKED_TOKEN_ID";
	public static final String SESSION_MIDIFY_PSWD_TRY_TIME="SESSION_MIDIFY_PSWD_TRY_TIME";

	/*
	 * 以下是所有Request中不能被任意使用的Attribute
	 * */
	/**
	 * 对于SUBMIT_TOKEN做特殊化处理，即使session内容将来移到memcached，SUBMIT_TOKEN也还位于本机session中
	 * */
	@Deprecated
	public static final String REQUEST_SUBMIT_TOKEN = "REQUEST_SUBMIT_TOKEN";
//	public static final String REQUEST_ERROR_MESSAGE = "REQUEST_ERROR_MESSAGE";
//	public static final String REQUEST_REQUEST_FROM = "REQUEST_REQUEST_FROM";
}